package it.xiuxian.lib.bean

import com.flyco.tablayout.listener.CustomTabEntity

class TabItem :CustomTabEntity {
    var title: String
    var selectedIcon = 0
    var unSelectedIcon = 0
    var selectColor=0
    var unSelectColor=0
    constructor(title: String, unSelectedIcon: Int, selectedIcon: Int,unSelectColor: Int,selectColor: Int) {
        this.title = title
        this.unSelectedIcon = unSelectedIcon
        this.selectedIcon = selectedIcon
        this.selectColor = selectColor
        this.unSelectColor = unSelectColor
    }

    constructor(title: String) {
        this.title = title
    }

    override fun getTabTitle(): String {
        return title
    }
   public fun getTitleUnSelectColor() :Int{
         return unSelectColor
     }
    public fun getTitleSelectColor() :Int{
        return selectColor
    }
    override fun getTabSelectedIcon(): Int {
        return selectedIcon
    }

    override fun getTabUnselectedIcon(): Int {
        return unSelectedIcon
    }

}